package common.rssReader;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Rss {

	private List<RssItem> rssItems = null;

	public void addRssItem(String link, String title, String desc, Date date) {
		if(this.rssItems == null){
			rssItems = new ArrayList<RssItem>();
		}
		RssItem item = new RssItem();
		item.setTitle(title);
		item.setDesc(desc);
		item.setLink(link);
	    item.setDate(date);
		rssItems.add(item);
	}

	public List<RssItem> getRssItems() {
		return rssItems;
	}

	public void setRssItems(List<RssItem> rssItems) {
		this.rssItems = rssItems;
	}
}
